package com.siterwell.push.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class DataBean {

    private String source;
    private String target;
    private long msg_id;
    private String hw_id;
    private String namespace;
    private Msg msg;



    public class Msg{
        private long CMD_CODE;
        private String str1;
        private String str2;
        private String str3;

        public long getCMD_CODE() {
            return CMD_CODE;
        }

        public void setCMD_CODE(long CMD_CODE) {
            this.CMD_CODE = CMD_CODE;
        }

        public String getStr1() {
            return str1;
        }

        public void setStr1(String str1) {
            this.str1 = str1;
        }

        public String getStr2() {
            return str2;
        }

        public void setStr2(String str2) {
            this.str2 = str2;
        }

        public String getStr3() {
            return str3;
        }

        public void setStr3(String str3) {
            this.str3 = str3;
        }

        @Override
        public String toString() {
            return "Msg{" +
                    "CMD_CODE=" + CMD_CODE +
                    ", str1='" + str1 + '\'' +
                    ", str2='" + str2 + '\'' +
                    ", str3='" + str3 + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "DataBean{" +
                "source='" + source + '\'' +
                ", target='" + target + '\'' +
                ", msg_id=" + msg_id +
                ", hw_id='" + hw_id + '\'' +
                ", msg=" + msg.toString() +
                '}';
    }
}
